package JavaBase.Polymorphism;

public class Sub extends Calculator{
    public Sub(double number1,double number2)
    {
        super(number1,number2);
    }
    public void count()
    {
        System.out.println(this.getNumber1()+"-"+this.getNumber2()+"="
                +(this.getNumber1()-this.getNumber2()));
    }
}
